// pages/component/buy.js
Component({

    /**
     * 组件的属性列表
     */
    properties: {
        show: {
            type: Boolean,
            default: true,
            required: false
        },
        shareNum: {
            type: Number,
            default: 0,
            required: false
        },
        type: {
            type: Number,
            default: 1,
            required: false
        }
    },
    options: {
        addGlobalClass: true
    },
    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        //点击关闭弹窗
        cancel() {
            this.triggerEvent('setshow')
        },
        bindphone() {
            this.triggerEvent('bindphone')
        },
        pay() {
            this.triggerEvent('pay')
        },
        renzheng() {
            this.triggerEvent('renzheng')
        }
    }
})